home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 2550 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.3 KB

  1. Path: mudskipper.cac.psu.edu!user
  2. From: fcusack@tdx.org (frank.)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: naked virgin basic help needed for newbie
  5. Date: Mon, 22 Jan 1996 06:07:11 -0400
  6. Organization: Penn State University, Center for Academic Computing
  7. Message-ID: <fcusack-2201960607110001@mudskipper.cac.psu.edu>
  8. References: <4dtvu4$da0@dub-news-svc-1.compuserve.com> <4du1dg$4pm@cloner3.netcom.com>
  9. NNTP-Posting-Host: mudskipper.cac.psu.edu
  10.  
  11. In article <4du1dg$4pm@cloner3.netcom.com>, tetbrac@ix.netcom.com (Tetbrac
  12. ) wrote:
  13.  
  14. > In <4dtvu4$da0@dub-news-svc-1.compuserve.com>
  15. > <102627.3053@compuserve.com> writes: 
  16. > >
  17. > >
  18. > >Can anyone tell me why my  compiler is not recognizing   int main
  19. > (void)
  20. > >or produces an error message at  #include <stdio> as well as printf
  21. > and 
  22. > >scanf. I admit this is my initial install and I'm sure its something
  23. > very basic
  24. >  I think you mean: void main(); 
  25.  
  26. I think not.
  27.  
  28. int main(void) is indeed what you want.
  29.  
  30. >  When you #include a header file, you have to specify the entire file
  31. > name such as #include <stdio.h>. Hope this helps.
  32. >                          Tetbrac
  33. ~Frank
  34.  -- I am Pentium of Borg.  Division is futile.  You will be approximated. --
  35.  --   If you build it, they will come --> http://www.tdx.org/~fcusack/    --
  36.  -- PGP key fingerprint: 01 C0 C0 B9 CC 78 67 0F  3F 64 80 65 8B 0F F9 EA --
  37.